<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>数组</title>
	<script>
		city = "广州";
		city1 ="东莞";
		city2 = "北京";

		citys = ['广州',[45,[55,65],99],676,6576,'北京'];
		citys[1][1][1]
		// // 多维数组
		// // citys = [];
		// // citys[2] = "广州";

		// // 0 1 2
		document.write(citys[1][1][0]);

		// 下标  索引  键


		nums = [456,5,65,3,324,43,43];

		total = 0;

		for (var i = 0; i < 7; i++) {
			total +=nums[i];
		}

		document.write(total);

		total = 0;

		for(var i in nums){

			total +=nums[i];
		}

		document.write(total);


		1  [546,56,5,33,656] 封闭一个函数，实现把数组最大值  get_max();

		2  [345,234,22343,34,7,44] 封闭一个函数，实现把数组里面奇数乘以2  get_ou();

		3  [67,467,3,3465,45,45,45,56,56,56,56,] 
		封闭一个函数，实现把数组下标是3位数进行求和  get_ou();

		4  [65,56,[565,56,5,6],56] 封闭一个函数，实现判断是一个数组是不是多维;
		 typeof();







	</script>
</head>
<body>
	
</body>
</html>